import React, { Suspense } from 'react';

const LayoutLoad=(Comp:React.LazyExoticComponent<any>):React.ReactNode=>{
    return(
        <Suspense fallback={<div style={{display:'flex',justifyContent:'center',alignItems:'center',fontSize:'50px'}}>加载中...</div>}> 
        <Comp />
        </Suspense>
    )
}

export default LayoutLoad;